<div class="titlebar"><i class="iconfont icon-text_icon"></i>使用情况</div>
<div class="cards">
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$coupon_count}</div><div class="text">领取数量</div></div>
    </div>
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$coupon_end_count}</div><div class="text">失效数量</div></div>
    </div>
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$coupon_size|money}</div><div class="text">发行价值</div></div>
    </div>
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$coupon_user_size|money}</div><div class="text">已用价值</div></div>
    </div>
</div>
<div class="titlebar"><i class="iconfont icon-text_icon"></i>优惠券信息</div>  
<table class="pure-table"> 
    <tr><td class="w100">优惠券名称:</td><td>{$info.name}</td></tr>
    <tr><td>规则说明:</td><td>{$info.tips}</td></tr>
    <tr><td>优惠券价值:</td><td>
            <table class="pure-table">
                <thead><tr><td class="fn-tar">剩余/初始</td><td class="fn-tar">领取(￥)</td><td class="fn-tar">购买(￥)</td><td class="fn-tar">额度(￥)</td><td class="fn-tar">满用(￥)</td><td class="fn-tac">抵扣/折扣</td></tr></thead>
                <tbody><tr><td class="fn-tar">{$info.num}/{$info.num_of}</td><td class="fn-tar">￥{$info.pay_price|money}</td><td class="fn-tar">￥{$info.shop_price|money}</td><td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$info.size|money}</td><td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$info.howmuch|money}</td><td class="fn-tar">{if $info.types}{$info.discount}折{else}￥{$info.price}{/if}</td></tr></tbody>
            </table>
    </td></tr>
   <tr><td>领取规则:</td><td>
        <span class="fn-cp istop badge {$info.is_check?'bg-blue':''}">消费</span>
        <span class="fn-cp istop badge {$info.is_shop?'bg-blue':''}">铺子</span>
        <span class="fn-cp istop badge {$info.is_vip?'bg-blue':''}">会员</span>
   </td></tr>
   <tr><td>使用规则:</td><td>
        <span class="gray">领取后:</span><span class="blue">{$info.ontypes?'隔天生效':'立即生效'}</span>
        <span class="gray">每天可使用:</span><span class="blue">{$info.daynum}次 </span>
        <span class="gray">每次间隔:</span><span class="blue">{$info.longtime}分</span>
    </td></tr>
    <tr><td>使用时间:</td><td>{$info.starttime|date='Y-m-d'} 至 {$info.endtime|date='Y-m-d'}</td></tr>
    <tr><td>周几可用:</td><td>
        <span class="badge{if in_array(0,$info.weekday)} bg-blue{/if}">星期日</span>
        <span class="badge{if in_array(1,$info.weekday)} bg-blue{/if}">星期一</span>
        <span class="badge{if in_array(2,$info.weekday)} bg-blue{/if}">星期二</span>
        <span class="badge{if in_array(3,$info.weekday)} bg-blue{/if}">星期三</span>
        <span class="badge{if in_array(4,$info.weekday)} bg-blue{/if}">星期四</span>
        <span class="badge{if in_array(5,$info.weekday)} bg-blue{/if}">星期五</span>
        <span class="badge{if in_array(6,$info.weekday)} bg-blue{/if}">星期六</span>
    </td></tr>
    <tr><td>优惠券价格:</td><td>
        <span class="gray">买单:</span>￥{$info.pay_price}
        <span class="gray">购买:</span>￥{$info.shop_price}
    </td></tr>
</table>
<div class="titlebar"><i class="iconfont icon-text_icon"></i>领取用户</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w60 fn-tac"></th>
            <th>昵称</th>
            <th class="w100 fn-tar">额度(￥)</th>
            <th class="w100 fn-tar">剩余(￥)</th>
            <th class="w100 fn-tar">满用(￥)</th>
            <th class="w100 fn-tac">抵扣/折扣</th>
            <th class="w200 fn-tac">有效期</th>
            <th class="w70 fn-tac">删除</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><img src="{$vo.user.face}" class="w40" /></td>
            <td><a href="javascript:openwin('{:url('user/review',['uid' => $vo.user.id])}')">{$vo.user.nickname}</a></td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.size|money}</td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.user_size|money}</td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.howmuch|money}</td>
            <td class="fn-tar">{if $vo.types}<span class="badge bg-blue">{$vo.discount}折</span>{else}<span class="badge bg-green">{$vo.price}元</span>{/if}</td>
            <td class="fn-tac">{$vo.starttime|date="Y-m-d"} 至 {$vo.endtime|date="Y-m-d"}</td>
            <td class="fn-tac"><a class="button isDel" url="{:url('coupon/deleteUser',array('id'=>$vo.id))}" href="javascript:;" title="删除">删除</a></td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','layer',function () {
    $('.isDel').isDel();
})
</script>